/**
 * Created by denh on 17/2/20.
 */
eventStatic('<?=EVENT_STATIC_URL?>', '课程列表');

var is_yd = common.getCookie('course_yd'); //是否显示过引导层

if (is_yd) {
    $('.yindao').hide();
} else {
    $('.yindao').show();
    common.setCookie('course_yd', true);
}

//关闭引导层
$('.yindao .button').click(function(){
    $('.yindao').hide();
});

//显示下拉分类
$('.header_logo').click(function(){
    $(".sign_list").toggle();
    $('.sign_list_bg').toggle();

    $('.sign_down').toggle();
    $('.sign_up').toggle();
});

//点击阴影层，阴影层消失
$('.sign_list_bg').click(function(){
    $(".sign_list").toggle();
    $(this).toggle();
});

//点击下拉分类条目
//$(".sign_list div").click(function(){
//    common.redirect('course','index','sign_id='+$(this).attr('sign_id'));
//});


wx.config({
    debug: false,
    appId: '<?php echo $this->signPackage["appId"];?>',
    timestamp: '<?php echo $this->signPackage["timestamp"];?>',
    nonceStr: '<?php echo $this->signPackage["nonceStr"];?>',
    signature: '<?php echo $this->signPackage["signature"];?>',
    jsApiList: [
    'onMenuShareAppMessage',
    'onMenuShareTimeline',
    'onMenuShareQQ',
    'onMenuShareWeibo',
    'onMenuShareQZone'
    ]
});

title = '爱贝儿医-爱课堂';
desc = '爱贝儿医—专注于做儿科医生间学习工作交流平台。平台拥有数十位来自省级以上重点三甲医院的儿科专家、重点医院儿科学科带头人、国内儿科权威人士组成的豪华专家团队。';
links = '';
imgUrl = '<?= G_SITE_CDN ?>/business/img/logoRed2.png';
weixinShare(title, desc, links, imgUrl);
